
var DEFAULT_RSA_PUBLIC_KEY = "MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAIWxWTdOTh+jFcrNDkMd/+R9W81Qzdr5GM9qjU41NNhTfr7fdYJz5EwbzfW+pm8tKRD+EGyiqL4TRbYwgb2QsYsCAwEAAQ==";

function encryptRequest(data, publicKey) {
    var encrypt = new JSEncrypt();
    encrypt.setPublicKey(publicKey);
    //返回加密后的串，加密后的串是base64的，服务端需要用base64恢复byte再解密
    return encrypt.encrypt(data);
}